package stringmethod;

import java.util.Scanner;

/**
 * @author げっしょく
 * @date 2021/7/7
 */
public class Demo02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.next();
        String result = s1.replace("tmd","真可爱");
        System.out.println(result);
    }
}

  /*    Scanner sc = new Scanner(System.in);
        System.out.println("输入手机号码");
        String s1 = sc.next();
        String s2; //设置两个变量来接受截取的字符串
        String s3;
        if(s1.length() ==11){
            s2 = s1.substring(0,3);  //从字符串0索引开始到索引3结束，但不包含3
            s3 = s1.substring(7);  //从7开始截取其后面的字符串内容
            System.out.println(s2+"****"+s3);  //将三个字符串进行拼接
        }else{
            System.out.println("您输入的手机号码有误");
        }*/
        /*Scanner sc = new Scanner(System.in);
        System.out.println("输入手机号码");
        String s1 = sc.next();
        if(s1.length() ==11){
            char[] s2 = s1.toCharArray();   //把字符串转变成字符数组
            for (int i = 0; i < s2.length; i++) {  //遍历数字把需要更改的地方替换成*
                if(i>2 && i<=6){
                    s2[i] = '*' ;
                }
            }
            for (int i = 0; i < s2.length; i++) {
                System.out.print(s2[i]);
            }

        }else{
            System.out.println("您输入的手机号码有误");
        }*/

/*
            Scanner sc = new Scanner(System.in);
            String s = sc.next();
            int getint = 0;
            int getChar = 0;
            int getchar = 0;
            int getInt = 0;
            int GetChar = 0;
            int Getchar = 0;

            //判断一个字符串中数字字符和大小写字符的个数办法的第一种
            for (int i = 0; i < s.length(); i++) {
                char a = s.charAt(i);  //用一个字符变量来接受字符串中每一个字符的
                if (a >= '0' && a <= '9') {   //判断每一个字符属于哪一种，然后那种类型自增1
                    getint++;
                } else if (a >= 'a' && a <= 'z') {
                    getchar++;
                } else if (a >= 'A' && a <= 'Z') {
                    getChar++;
                } else {

                }
            }


                //第二中办法：
            char[] s1 = s.toCharArray();
            char c;
               for (int i = 0; i < s1.length; i++) {
                    c = s1[i];
                    if (c >= '0' && c <= '9') {   //判断每一个字符属于哪一种，然后那种类型自增1
                    getInt++;
                    } else if (c >= 'a' && c <= 'z') {
                    Getchar++;
                    } else if (c >= 'A' && c <= 'Z') {
                    GetChar++;
                    }
                    }
            System.out.println("该字符中数字字符有" + (getint) + "个");
            System.out.println("该字符中小写字母有" + (getchar) + "个");
            System.out.println("该字符中大写字母有" + (getChar) + "个");
            System.out.println("该字符中数字字符有" + (getInt) + "个");
            System.out.println("该字符中小写字母有" + (Getchar) + "个");
            System.out.println("该字符中大写字母有" + (GetChar) + "个");
        */